package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.LiveArea;
import edu.uni.dormitory.bean.LiveAreaExample;
import java.util.List;

import edu.uni.dormitory.globalbean.AreaVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author 陈楚城
 * @create 2019.05.03
 * @function 映射
 */
public interface LiveAreaMapper {
    int countByExample(LiveAreaExample example);

    int deleteByExample(LiveAreaExample example);

    int deleteByPrimaryKey(Long id);

    int insert(LiveArea record);

    int insertSelective(LiveArea record);

    List<LiveArea> selectByExample(LiveAreaExample example);

    LiveArea selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") LiveArea record, @Param("example") LiveAreaExample example);

    int updateByExample(@Param("record") LiveArea record, @Param("example") LiveAreaExample example);

    int updateByPrimaryKeySelective(LiveArea record);

    int updateByPrimaryKey(LiveArea record);

    /**
     *根据id查询宿舍区信息
     */
    AreaVo selectLiveArea(long areaId);
    /**
     * 查询所有宿舍区信息
     */
    List<AreaVo> selectAreaList(long universityId);
    /**
     * 根据宿管id查询宿舍区信息
     */
    LiveArea selectAreaIdByEid(long employeeId);
}